<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
  <head>
  	<link rel="stylesheet" type="text/css" href="<c:url value='/css/Pub.css'/>"></link>
  	<script type="text/javascript">
  		var path = "${PageContext.request.contextPath}/";
  	</script>
  </head>
  <body>
  <br/>
		<form target="dataFrame" name="f1" method="post" action="${pageContext.request.contextPath }/type_save.action">

			<table id="table" class="easyui-datagrid" style="width:400px;height:250px"
				   data-options="url:'datagrid_data.json',fitColumns:true,singleSelect:true,title:'添加分类'">
				<thead>
				<tr>
					<th data-options="field:'code',width:100"></th>
					<th data-options="field:'name',width:100"></th>
					<th data-options="field:'price',width:100,align:'right'"></th>
				</tr>
				</thead>
				<tbody>
				<tr>
					<td>
						分类名称：
					</td>
					<td>
						<input class="txt" type="text" name="name"/>
					</td>
				</tr>
				<tr>
					<td>
						说明：
					</td>
					<td>
						<textarea class="textarea" name="descr"></textarea>
					</td>
				</tr>
				<tr>
					<td></td>
					<td  align="center">
						&nbsp;&nbsp;<button  onclick="javascript:document.forms['f1'].submit();$('#win').window('close');">保存</button>
						&nbsp;&nbsp;&nbsp;&nbsp;<button  onclick="javascript:$('#win').window('close');">取消</button>
					</td>
				</tr>
				</tbody>
			</table>
		</form>
  	<iframe name="dataFrame" style="display:none;"></iframe>
  </body>
</html>
